package com.decent.ejfadmin.qy.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.decent.ejfadmin.collectcard.entity.SupplyCardViewBean;
import com.decent.ejfadmin.common.bean.Page;

@RestController
@RequestMapping("qy")
public class QyController {
	/**
	 * 收卡记录列表(批次分组)
	 *
	 * @param startTime 查询开始时间
	 * @param endTime   查询结束时间
	 * @param page      当前页数
	 * @return MemberMessage
	 */
	@RequestMapping("/userCardSupplyRecord")
	public Page querySupplyOrderList(String startTime, String endTime, Page page, String area,
			SupplyCardViewBean card) {
//		try {
//			ParamUtil.verifyRequestParam(startTime, endTime, page);
//			String userid = null;
//			if (StringUtils.isNotBlank(card.getUserAccount())) {
//				userid = userService.getUserId(card.getUserAccount());
//				if (userid == null || StringUtils.equals("toomuch", userid)) {
//					return userService.dealUserid(userid);
//				}
//			}
//			String[] userIds = StringUtils.isBlank(userid) ? null : userid.split(",");
//			card.setArea(URLDecoder.decode(StringUtils.defaultIfBlank(area, ""), "UTF-8"));
//			return collectCardRecordService.querySupplyOrderList(page, startTime, endTime, userIds, card);
//		} catch (Exception e) {
//			log.warn("收卡记录列表查询异常: [{}]", e, e);
//			page.setResultList(new ArrayList<>());
//			page.setTotal(0);
//			return page;
//		}
		return null;
	}
}
